feat: add Webhook Deliveries query type - #798
Open
KyriosGN0 wants to merge 1 commit into
Open
Conversation
Lists deliveries of an organization or repository webhook, one row per delivery, so dashboards can track webhook success rates and failures. The deliveries endpoint has no time filter and is cursor paginated, so the query pages from the most recent delivery until it reaches the start of the time range, capped at 5000 deliveries. Results that do not cover the whole time range, either because of that cap or because of GitHub's 3-day retention window, carry a warning notice on the frame. Closes grafana#488 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
Signed commits report1 of 1 commit between
This repository requires all commits to be signed. See GitHub docs on commit signature verification. |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Webhook Deliveriesquery type that lists deliveries of an organization or repository webhook, one row per delivery:delivered_at,event,action,status,status_code,duration,redelivery,repository_id,installation_id, and a derivedsuccessboolean.All/Success/Failure). Leaving the repository empty queries an organization webhook; setting it queries that repository's webhook.Organizations.ListHookDeliveriesandRepositories.ListHookDeliveriesfrom go-github, alongside the existing REST-backed query types.docs/sources/query-editor.md, including the requiredadmin:org_hook/admin:repo_hooktoken scope and GitHub's 3-day delivery retention.Why
Notes for reviewers
repository_idbut no repository name; resolving names would cost an extra request per repository, so the ID is emitted as-is and documented.🤖 Generated with Claude Code